import request from '@/utils/request'

// 查询转会申请记录列表
export function listAppTransferOut(query) {
  return request({
    url: '/business/appTransfer/listOut',
    method: 'get',
    params: query
  })
}
export function listAppTransferByMiniUserId(query) {
  return request({
    url: '/business/appTransfer/listAppTransferByMiniUserId',
    method: 'get',
    params: query
  })
}

export function listAppTransferInto(query) {
  return request({
    url: '/business/appTransfer/listInto',
    method: 'get',
    params: query
  })
}

// 查询转会申请记录详细
export function getAppTransfer(id) {
  return request({
    url: '/business/appTransfer/' + id,
    method: 'get'
  })
}

// 新增转会申请记录
export function addAppTransfer(data) {
  return request({
    url: '/business/appTransfer',
    method: 'post',
    data: data
  })
}

// 修改转会申请记录
export function updateAppTransfer(data) {
  return request({
    url: '/business/appTransfer',
    method: 'put',
    data: data
  })
}

// 删除转会申请记录
export function delAppTransfer(id) {
  return request({
    url: '/business/appTransfer/' + id,
    method: 'delete'
  })
}

//转出审核
export function auditOut(data) {
  return request({
    url: '/business/appTransfer/auditOut',
    method: 'post',
    data: data
  })
}

//转入审核
export function auditInto(data) {
  return request({
    url: '/business/appTransfer/auditInto',
    method: 'post',
    data: data
  })
}
